package com.hongyue.dey01.ChouXiang;

/*
	我们计划为一所体育学校设计一套系统，需要记录以下人员的信息：
	教练员：
		属性：员工编号、姓名、性别、年龄
		行为：吃饭(吃工作餐)
	运动员：
		属性：学员编号、姓名、性别、年龄、所在班级
		行为：吃饭(吃营养餐)

 */
public abstract class XueXiao {
    private String Id, xinMing, xingBie, nianLing;

    public abstract void chiFan();

    public XueXiao(String id, String xinMing, String xingBie, String nianLing) {
        Id = id;
        this.xinMing = xinMing;
        this.xingBie = xingBie;
        this.nianLing = nianLing;
    }

    public XueXiao() {
    }

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getXinMing() {
        return xinMing;
    }

    public void setXinMing(String xinMing) {
        this.xinMing = xinMing;
    }

    public String getXingBie() {
        return xingBie;
    }

    public void setXingBie(String xingBie) {
        this.xingBie = xingBie;
    }

    public String getNianLing() {
        return nianLing;
    }

    public void setNianLing(String nianLing) {
        this.nianLing = nianLing;
    }
}
